/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nominalitzacions.drivers;

import commonlib.domain.Corpus;
import nominalitzacions.domain.ActiveLanguage;
import nominalitzacions.stubs.Dictionary;
import nominalitzacions.stubs.Rules;

/**
 *
 * @author marc.mauri
 */
public class ActiveLanguageDriver {

    public static void main(String args[]) {
        ActiveLanguage al = ActiveLanguage.getInstance();

        Dictionary dico = new Dictionary();

        al.setInfDico(dico);
        if (al.getInfDico() != null)
            System.out.println("Diccionari infinitius correctament "
                                + "inicialitzat");
        al.setIrregDico(dico);
        if (al.getIrregDico() != null)
            System.out.println("Diccionari irregulars correctament "
                                + "inicialitzat");
        al.setNameDico(dico);
        if (al.getNameDico() != null)
            System.out.println("Diccionari de noms correctament inicialitzat");

        Corpus corpus = new Corpus();

        al.setCorpus(corpus);
        if (al.getCorpus() != null)
            System.out.println("Corpus de parells correctament inicialitat");

        Rules rules = new Rules();

        al.setRules(rules);
        if (al.getRules() != null)
            System.out.println("Regles correctament inicialitzades");
    }

}
